//
//  TBBLEWriteCharacterAction.h
//  TBSDK
//
//  Created by nexgo on 2017/10/27.
//  Copyright © 2017年 truth. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TBBLEBaseAction.h"

// 回调
@interface TBBLEWriteCharacterActionCB: TBBLEBaseActionCB

@property (nonatomic,copy) void(^ _Nullable onSendPerData)(NSData*_Nonnull);  // 发送数据

@end

@interface TBBLEWriteCharacterAction : TBBLEBaseAction

@property (nonatomic,copy) CBCharacteristic* _Nullable character;

- (instancetype _Nullable )init:(CBCharacteristic*_Nullable)character data:(NSData*_Nullable)sendDataTmp option:(TBBLEBaseOption*_Nullable)optionTmp;

-(void)resetAction;

-(NSData*_Nullable)getPerData;

@end
